package com.gem.day05;

/**账户业务类*/
public class AccountService {

	public void disposit(Account account, double money) {
		if (account != null) {
			account.setBalance(account.getBalance() + money);
		}
	}

	public void withdraw(Account account, double money) {
		if (account != null && account.getBalance() >= money) {
			account.setBalance(account.getBalance() - money);
		}
	}
}
